<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>后台管理-广告管理</title>
		<link rel="stylesheet" type="text/css" href="__CSS__/boxdeal.css">		
		<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
		
		<link rel="stylesheet" href="__CSS__/swiper.min.css">
		<link rel="stylesheet" href="__CSS__/autoplay.css">

		<script src="__JS__/swiper.min.js"></script>
	</head>
	<body>
		<div>
			<!-- 顶部 -->
				<div class="top">
					<img src="__IMG__/tx.jpg" />
					<span class="top-1">论坛后台管理</span>
					<span class="top-2">欢迎您：{:session('uName')}</span>
				</div>
			<!-- 导航栏 -->
				<div class="navbar">
					<ul>
						<li><a href="{:url('deal/mesdeal')}">帖子管理</a></li>
						<li><a href="{:url('deal/userdeal')}">用户管理</a></li>
						<li><a href="{:url('deal/secdeal')}">版块管理</a></li>
						<li><a href="{:url('deal/bindeal')}">回收站管理</a></li>
						<li><a href="{:url('advdeal/advdeal')}">广告管理</a></li>
						<li><a href="{:url('advdeal/boxdeal')}">轮播图管理</a></li>
						<li><a href="{:url('admin/apa')}">修改密码</a></li>
						<li><a href="{:url('admin/alogout')}">注销</a></li>
						<li><a href="/mamx28/public/index.php/mamx_forum/Mamx">论坛前台</a></li>
					</ul>
				</div>
				
				<!-- 轮播图展示 -->
				<div class="swiper-container manage"  style="z-index: 0;margin-top:20px;">
					<div class="swiper-wrapper">
						{volist name='result' id='resultRow'}
							<div class="swiper-slide slideimg">
								<img src="__UPLOAD__/{$resultRow.c_img}" style="width: 80%;height: 500px;">
								<div class="swispan">
									<span class="sp1">{$resultRow.c_title}</span>
									<span class="sp2">{$resultRow.c_content}</span>
								</div>
							</div>
						{/volist}
					</div>
					<div class="swiper-pagination"></div>
					<div class="swiper-button-next"></div>
					<div class="swiper-button-prev"></div>
				</div>
				<!-- 广告栏 -->
				<div class="addadv" style="">
					<span>轮播图管理</span>
					<input type="button" value="添加轮播图"  onclick="window.location.href='{:url('advdeal/boxadd')}'" class="add">
					<form method="post" action="{:url('advdeal/boxdeal',['search' => input('search')])}" class="search">
						<input type="text" name="search" class="search1">
						<input type="submit" value="搜 索" class="search2">
					</form>
				</div>
				<!-- 轮播图信息 -->
				<div class="swinfo">
					<table>
						<tr class="info1">
							<td>序 号</td>
							<td>图 片</td>
							<td>标题 | 发布时间</td>
							<td>文字介绍</td>
							<td>指向mid</td>
							<td>操 作</td>
						</tr>
						{volist name="result" id="resultRow"}
							<tr class="info2">
								<td>{$i}</td>
								<td><img src="__UPLOAD__/{$resultRow.c_img}"></td>
								<td class="info2-1">
									<span>{$resultRow.c_title}</span>
									<span style="color: #6E6E6E;font-size: 20px;">{$resultRow.c_createat|date="Y-m-d H:i:s"}</span>
								</td>
								<td>{$resultRow.c_content}</td>
								<td>{$resultRow.c_mid}</td>
								<td>
									<a href="{:url('advdeal/boxinfo',['cid'=>$resultRow.c_id])}" style="color: #393D93;">修改</a> | 
									<a href="{:url('advdeal/boxok',['cid'=>$resultRow.c_id])}" style="color:{$resultRow.disablecolor} ;">{$resultRow.c_disabled}</a> | 
									<a href="{:url('advdeal/boxban',['cid'=>$resultRow.c_id])}" style="color:{$resultRow.okcolor} ;">{$resultRow.c_ok}</a> | 
									<a href="{:url('advdeal/boxdel',['cid'=>$resultRow.c_id])}" style="color: #629755;">删除</a>
								</td>
							</tr>
						{/volist}
					</table>
				</div>
			</div>
		 <script>
		    var swiper = new Swiper('.swiper-container', {
		        pagination: '.swiper-pagination',
		        nextButton: '.swiper-button-next',
		        prevButton: '.swiper-button-prev',
		        paginationClickable: true,
		        spaceBetween: 30,
		        centeredSlides: true,
		        autoplay: 2500,
		        autoplayDisableOnInteraction: false
		    });
		    </script>
	</body>
</html>
